﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using XukaShop.Dao;
using XukaShop.Models.Entities;

namespace XukaShop.Biz
{
    public class MessageBiz
    {
        private MessageDao _messageDao = new MessageDao();

        public List<Message> GetListMessage()
        {
            return _messageDao.GetListMessage();
        }

        /// <summary>
        /// Get a message by MessageId
        /// </summary>
        /// <param name="messageId"></param>
        /// <returns></returns>
        public Message GetMessageById(int messageId)
        {
            return _messageDao.GetMessageById(messageId);
        }
    }
}